const Mock=require("mockjs");
const data=Mock.mock({
    "list|10":[{
        img:"@image(100X100,@color)",
        title:"@ctitle(2,10)",
        name:"@cname",
        text:"@cword(10-100)",
        "num|100-1000":0
    }]
})
module.exports = {
    devServer:{
        before(app)
        {
            app.get("/book",(req,res)=>
            {
                res.send(data.list);
            })
        }
    }
}